INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

IF(WIN32)
	INCLUDE_DIRECTORIES(${3RDPARTY_DIR}/include/netcdf)
ELSE(WIN32)
	INCLUDE_DIRECTORIES(/usr/local/netcdfcxx/include)
	INCLUDE_DIRECTORIES(/usr/local/netcdf4/include)
	LINK_DIRECTORIES(/usr/local/netcdfcxx/lib)	
	LINK_DIRECTORIES(/usr/local/netcdf4/lib)
ENDIF(WIN32)

SET(TARGET_H
    apiDoc.h
    plugin.h
    ProjectTimer.h
)

SET(TARGET_SRC
	plugin.cpp
	ProjectTimer.cpp
    controler.cpp
)

SETUP_GROUP()

SET(TARGET_ADDED_LIBRARIES
    drogon
    trantor
    yaml-cpp
    OCVolume
    OCGrib
    OCNetCDF
)

IF(WIN32)
SET(TARGET_EXTERNAL_LIBRARIES 
    ws2_32
)
ENDIF(WIN32)

SETUP_PLUGIN(ControllerMicroWin3dService)
SETUP_PLUGIN_DEP(ControllerMicroWin3dService OCMain)
SETUP_PLUGIN_DEP(ControllerMicroWin3dService OCGrib)
SETUP_PLUGIN_DEP(ControllerMicroWin3dService OCVolume)
SETUP_PLUGIN_DEP(ControllerMicroWin3dService OCServer)
